import request from '@/utils/request'

export function listcheckHead(query) {
  return request({
    url: '/issue/checkHead/list',
    method: 'get',
    params: query
  })
}

export function createcheckHead(data) {
  return request({
    url: '/issue/checkHead/create',
    method: 'post',
    data
  })
}

export function readcheckHead(data) {
  return request({
    url: '/issue/checkHead/get/' + data.id,
    method: 'get'
  })
}

export function updatecheckHead(data) {
  return request({
    url: '/issue/checkHead/update',
    method: 'post',
    data
  })
}

export function deletecheckHead(data) {
  return request({
    url: '/issue/checkHead/delete/' + data.id,
    method: 'delete'
  })
}
